package com.zlkj.pro.modular.business.service;

import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlkj.pro.modular.business.entity.CustomerEntity;
import com.zlkj.pro.modular.business.model.dto.CustomerDTO;
import com.zlkj.pro.modular.business.model.vo.CustomerVO;

/**
 * @author liyang
 * @date 2024/4/6
 * @time 14:34
 */
public interface TCustomerService extends IService<CustomerEntity> {

    PageResult<CustomerVO> findPage(CustomerDTO dto);

    boolean edit(CustomerDTO dto);

    boolean add(CustomerDTO dto);

    /**
     * 失效客户
     */
    boolean invalid(Long id);

    /**
     * 成交客户
     */
    boolean success(Long id);
}
